projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cebe85e
)
(scan_lists): Bring FROM back into range BEGV...ZV.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 8 Oct 1998 10:47:51 +0000
(10:47 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 8 Oct 1998 10:47:51 +0000
(10:47 +0000)
src/syntax.c
patch
|
blob
|
history
diff --git
a/src/syntax.c
b/src/syntax.c
index 4edac655b7fbf48a32a4dfec5231d9251bfd249f..a2049e024bf09d1a5a15c42b1de868240dcc1db7 100644
(file)
--- a/
src/syntax.c
+++ b/
src/syntax.c
@@
-1827,12
+1827,17
@@
scan_lists (from, count, depth, sexpflag)
int temp_pos;
int last_good = from;
int found;
- int from_byte
= CHAR_TO_BYTE (from)
;
+ int from_byte;
int out_bytepos, out_charpos;
int temp;
if (depth > 0) min_depth = 0;
+ if (from > ZV) from = ZV;
+ if (from < BEGV) from = BEGV;
+
+ from_byte = CHAR_TO_BYTE (from);
+
immediate_quit = 1;
QUIT;